/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.wechat-view {
	padding: 10px;
	height: 100%;
	box-sizing: border-box;
}

.wechat-welcome {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
}

.wechat-welcome-title {
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 10px;
}

.wechat-welcome-description {
	font-size: 14px;
	opacity: 0.8;
	max-width: 400px;
}

/* 用户列表样式 */
.wechat-user-list {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

.wechat-user-item {
	display: flex;
	align-items: center;
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 4px;
	cursor: pointer;
	position: relative;
}

.wechat-user-item:hover {
	background-color: var(--vscode-list-hoverBackground);
}

.wechat-user-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--vscode-badge-background);
	color: var(--vscode-badge-foreground);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	margin-right: 10px;
}

.wechat-user-name {
	flex: 1;
	font-size: 14px;
}

.wechat-user-status {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.wechat-user-item[data-status="online"] .wechat-user-status {
	background-color: #30d158;
}

.wechat-user-item[data-status="offline"] .wechat-user-status {
	background-color: #8e8e93;
}

.wechat-user-item[data-status="away"] .wechat-user-status {
	background-color: #ffd60a;
}

/* 用户列表项选中状态 */
.wechat-user-item.selected {
	background-color: var(--vscode-list-activeSelectionBackground);
	color: var(--vscode-list-activeSelectionForeground);
}

/* 编辑器样式 */
.wechat-editor {
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.wechat-editor-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
	background-color: var(--vscode-editor-background);
}

/* 消息列表样式 */
.wechat-message-list {
	flex: 1;
	overflow-y: auto;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 6px;
	background-color: var(--vscode-editor-background);
}

.wechat-message {
	margin-bottom: 15px;
	padding: 10px;
	border-radius: 6px;
	max-width: 80%;
}

.wechat-message-received {
	background-color: var(--vscode-activityBar-inactiveForeground);
	color: var(--vscode-editor-foreground);
	align-self: flex-start;
}

.wechat-message-sent {
	background-color: var(--vscode-button-background);
	color: var(--vscode-button-foreground);
	align-self: flex-end;
	margin-left: auto;
}

.wechat-message-header {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
	font-size: 12px;
}

.wechat-message-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	margin-right: 8px;
	background-color: var(--vscode-badge-background);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 12px;
	color: var(--vscode-badge-foreground);
}

.wechat-message-username {
	font-weight: 600;
}

.wechat-message-time {
	margin-left: auto;
	opacity: 0.7;
	font-size: 11px;
}

.wechat-message-content {
	line-height: 1.5;
}

/* 输入区域样式 */
.wechat-input-area {
	display: flex;
	padding: 10px;
	background-color: var(--vscode-input-background);
	border-radius: 6px;
}

.wechat-input {
	flex: 1;
	min-height: 40px;
	padding: 10px;
	border: 1px solid var(--vscode-input-border);
	border-radius: 4px;
	background-color: var(--vscode-input-background);
	color: var(--vscode-input-foreground);
	resize: none;
}

.wechat-send-button {
	margin-left: 10px;
	padding: 0 15px;
	background-color: var(--vscode-button-background);
	color: var(--vscode-button-foreground);
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.wechat-send-button:hover {
	background-color: var(--vscode-button-hoverBackground);
}

/* 欢迎消息样式 */
.wechat-welcome-message {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	color: var(--vscode-descriptionForeground);
	font-size: 14px;
	text-align: center;
}
